Contents Screen
BizCalc Custom Controls

The BizCalc Custom Control TBizCalc is a popup calculator Custom Control version of Business Calculator.

The Calculator features tape display, 18 significant digits, Copy to Clipboard and Print.  For more features and information on the calculators functionality see the BCALC.HLP file.

 This component is distributed as Shareware. This is the registered version and may no be distributed.  To Register send $10.00 us to.

Bryan McNeely

9737 Whitehurst #3

Dallas, Tx 75243

For support and bug reporting contact Bryan McNeely via Compuserve Id 72066,142.


TBizCalc

TBizCalc: TComponent;

 Popup calculator component.

Properties	Methods	 Events

Active property	Execute Method	OnResult Event

Caption property	Close Method	OnClose Event

Copy property	Hide Method

Color property	Show Method

Help property	Retreive Method

Left Property

Position Property

Print property

Text Property

TextColor Property

Top Property

UserClose property

Visible property


Active property of TBizCalc
Active property

property Active: Boolean;  (Read-Only)

The Active property is used to query the state of TBizCalc.  When this property is True the calculator is loaded. Check the Visible property to determine if the calculator is shown or hidden. This property is read only.

See also:

Execute Method

Show Method

Hide Method

Close Method.


Caption property of TBizCalc
Caption property

property Caption: String;

The Caption property is used to set text that appears in the Tile Bar of the calculator popup window.


Position property of TBizCalc
Position property

property Position: TPosition;

The Position property is used control the  location of the calculator popup window.  This property is functional the same as the position property for Delphi Forms.

See Also: Top Property and Left Property


Copy property of TBizCalc
Copy property

property Copy: Boolean;

The copy property is used to enable or disable the calculators copy function. When set to true the user can copy selected data from the calculators tape display to the clipboard. This property also controls displaying of the copy menu item.


UserClose property of TBizCalc
UserClose property

property UserClose: Boolean;

The UserClose property is used to enable or disable the calculators close function. When set to true the user can close the calculator by select exit from the popup menu or via the system menu(-). This property also controls displaying of the Exit menu item.

Note: This option doesnt actually destroy the calculator form, but rather performs the equivalent

of the Hide Method.


Left property of TBizCalc
Left property

property Left: Integer;

This property controls the positioning of the calculator popup window.

See also:

Top Property


Print property of TBizCalc
Print property

property Print: Boolean;

The print property is used to enable or disable the calculators Print function. When set to true the user can print the data from the calculators tape display. This property also controls displaying of the print menu item.


Text property of TBizCalc
Text property

property Text: String;   (Read-Only)

The Text property is used to retreive calculation results from the Calculators display. This property is read only. Calculation result are placed in the text property when any of the following methods are performed:

Retreive Method

Show Method

Hide Method

Close Method.


Top property of TBizCalc
Top property

property Top: Integer;

This property controls the positioning of the calculator popup window.

See also:

Left Property


Visible property of TBizCalc
Visible property

property Visible: Boolean;  (Read-Only)

The Visible property is used to query the state of TBizCalc.  When this property is True the calculator is shown. Check the Active property to determine if the calculator is loaded. This property is read only.

See also:

Execute Method

Show Method

Hide Method

Close Method.


Color property of TBizCalc
Color property

property Color: TColor;

The Color property is used to control the canvas color of TBizCalc.  Changing this property will have the effect of changing the background color of the calculator.


TextColor property of TBizCalc
TextColor property

property TextColor: TColor;

The Color property is used to control the font color of TBizCalc buttons.  Changing this property will have the effect of changing the color of the text that appears on calculator buttons.


OnResult Event of TBizCalc
OnResult event

property OnResult: TNotifyEvent;

The OnResult Event is generated whenever the user selects the Equals button of TBizCalc.  This event is usefull if you want to capture the results of a calculation.  When this event occurs the Text Property is updated with the results of the calculation.


OnClose Event of TBizCalc
OnClose event

property OnClose: TNotifyEvent;

The OnClose Event is generated whenever the user exits the calculator of TBizCalc.


Help property of TBizCalc
Help property

property Help: Boolean;

The Help property is used to enable or disable the calculators Help facility. When set to true the user can invoke help from the calculators popup menu or by pressing F1. This property also controls displaying of the Help menu item.

Note: Setting this property to true requires that the BCALC.HLP file be in the Application directory or in the Windows directory.  You may use the BCALC.HLP file distributed with the component or create your own, but the control will always look for the file by this name.


Execute Method of TBizCalc
Execute Method

Function Execute: Boolean;

The Execute method is used to launch the popup calculator. Check the Active and Visible property to determine if the calculator is already loaded and or shown.  Note this method will launch and show the calculator even if a previous Hide method has been performed.

See also:

Execute Method

Show Method

Hide Method

Close Method.


Close Method of TBizCalc
Close Method

Function Close: Boolean;

The Close method is used to quit the popup calculator and free its resources.  When quitting an application, that contains this TBizCalc component, perform the close method before ending the program.  Check the Active and Visible properties to determine if the calculator is  loaded and or shown.

See also:

Execute Method

Show Method

Hide Method

Close Method.


Hide Method of TBizCalc
Hide Method

Function Hide: Boolean;

The Hide method is used to make the calculator invisible.  The Show Method will restore, show, or bring to front the calculator window.  Check the Active property and Visible property to determine if the calculator is already loaded and or shown.

See also:

Execute Method

Close Method.


Show Method of TBizCalc
Show Method

Function Show: Boolean;

The Show method is used to make the calculator visible.  The Show method will restore, show, or bring to front the calculator window.  Check the Active property and Visible property to determine if the calculator is already loaded and or shown.

See also:

Execute Method

Hide Method

Close Method.


Retreive Method of TBizCalc
Retreive Method

Function Retreive: Boolean;

The Retreive method is used return a calculation result.  When the Retreive method is performed the results from the calculator display are placed in the Text Property.  In addition to the Retreive method any of the following methods will also cause the Text property to be updated.

See also:

Show Method

Hide Method

Close Method.